<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to Spring Web MVC project</title>
    </head>

    <body>
        <p>Hello! This is the default welcome page for a Spring Web MVC project.</p>
        <c:if test="${not empty users}">
            <c:forEach var="u" items="${users}">
                Id : ${u.id} - Name : ${u.name} <a href="detail.htm?id=${u.id}">Detail</a> <br/>
            </c:forEach>
        </c:if>
        <h2>${error}</h2>
    </body>
</html>
